<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, user-scalable=no">
<title>Registra nuovo utente</title>

<!-- Bootstrap core CSS -->
<link href="../css/bootstrap.min.css" rel="stylesheet">
<script
		src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>	
<link href="registration.css" rel="stylesheet">
<script type="text/javascript" src="../js/sha512.js"></script>
<script type="text/javascript" src="../js/forms.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
	<nav id=navbar-extender class="navbar navbar-inverse"></nav>
	<div name="pagina" class="container">
		

		<nav id="navigatore" class="navbar navbar-inverse">
			<div class=container-fluid>
				
				<ul class="nav navbar-nav">
					<li role="presentation">
						<img class=img-responsive alt="logo gas" src="../images/logo.png" width=50px height=50px>
					</li>
					<li role="presentation"><a
						href="../login/login.php"><span
							class="glyphicon glyphicon-home" aria-hidden="true"></span> Home</a>
					</li>
					<li role="presentation"><a href="#">Indietro</a></li>
				</ul>
					<form id=ricerca class="navbar-form navbar-left" role="search">
						<div class="form-group">
							<input type="text" class="form-control" placeholder="Socio">
						</div>
						<button type="submit" class="btn btn-default">Cerca</button>
					</form>
			</div>

		</nav>
		<div class=container>
		<div class=row>
			<div class="col-xs-12 col-md-8 col-sm-8">
				<div class=container id=centrale>
			<!-- FORM DI REGISTRAZIONE UTENTE -->
			<form title="form_di_registrazione" name=regform action="registration_process.php" method=POST id="registration">
				<h1>Registra Utente</h1>
				
				<select name="ruolo">
					<option value=-1 selected="selected">ruolo</option>
					<option value=0>socio</option>
					<option value=1>referente</option>
					<option value=2>tesoriere</option>
				</select> 
				<br><br>
				
				<div class="form-group">
				<label for="Nome">Nome</label>
				<input type=text name=nome class=form-control required placeholder="Nome">
				</div>
				
				<div class="form-group">
				<label for="Cognome">Cognome</label>
				<input type=text name=cognome class=form-control required placeholder="Cognome">
				</div>
				
				<div class="form-group">
				<label for="Nome utente">Username</label>
				<input type=text name=username class=form-control required placeholder="username">
				</div>
				 
				<div class="form-group">
    			<label for="Email del nuovo socio">Email</label>
				<input type="email" name="email" value="" class="form-control" required placeholder="email" size="25" maxlength="40">
				</div>
				
				<div class="form-group">
    			<label for="Password personale">Password</label>
				<input type="password" name="p" class="form-control" required>
				</div>
				<button class="btn btn-lg btn-primary btn-block" type="submit" onclick="formhash(this.form, this.form.password);">Invia</button>
			</form>
			</div>
			</div>
				<div class="col-xs-12 col-md-4 col-sm-4">
					<section title="informazioni marginali" id=infoplus>
						<h2 align=center>Info aggiuntive</h2>
						<div class="form-group">
							<label for="Indirizzo">Indirizzo</label> <input type=text
								name=indirizzo class=form-control
								placeholder="Indirizzo" form=registration>
						</div>
						<div class="form-group">
							<label for="N.Tel">Telefono</label> <input type=text name=telefono
								class=form-control  placeholder="+39" form=registration>
						</div>
						<div class="form-group">
							<label for="N.Tel">Cellulare</label> <input type=text name=cellulare
								class=form-control placeholder="+39" form=registration>
						</div>
					</section>
				</div>
			</div>
		</div>
		
		
	</div>
	
</body>
</html>

